package com.hex.liyue.usermodule.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;

import com.hex.liyue.R;
import com.hex.liyue.commonmodule.activity.BaseActivity;
import com.hex.liyue.commonmodule.utils.StatusBarCompatUtils;
import com.hex.liyue.usermodule.fragment.LoginFragment;

/**
 * 这是一个登录注册的界面
 * Created by yukoyuan on 16/6/13.
 */
public class LoginAndRegistActivity extends BaseActivity {
    private LoginFragment loginFragment;

    @Override
    protected void bindPresenter() {

    }

    @Override
    protected void initData(Bundle extras) {
        if (loginFragment == null) {
            loginFragment = new LoginFragment();
        }
        FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
        fragmentTransaction.replace(R.id.fl_login_regist, loginFragment).commit();
    }

    @Override
    public int getContentLayout() {
        return R.layout.activity_login_regist;
    }

    @Override
    protected void initToolbar() {
        StatusBarCompatUtils.compat(this);
    }


}
